State pensioners can fill gaps in their National Insurance record with HMRC and the Department for Work and Pensions (DWP), they've been told.