Taking time out for children can hit your chances of getting the full state pension: here’s how to close the gap