HMRC has announced a 10-year, £175m deal with the British tech firm Quantexa to provide AI-powered technology to help improve its performance.