HM Revenue and Customs (HMRC) has been accused by a public spending watchdog of degrading its own services “as a matter of policy” and damaging public confidence in the tax system.