Thousands of pensioners may have been sent the wrong tax code following the introduction of a new computer system at HM Revenue & Customs.