Millions of parents may have overpaid on National Insurance contributions to fill gaps in their state pension record