Parents who did not claim child benefit will be allowed to top up their state pension, it has been revealed.