People are at risk of losing out on cash in retirement because employers haven't been investing their pension contributions correctly