Taxpayers have reported more than 2.6m communications from fraudsters pretending to be from HM Revenue & Customs over the past three financial years, according to official data.