Over-50s are being urged to work but just 10% of Treasury staff are that age, the BBC has learned.