The government will invest £1.3bn into making HMRC “one of the most digitally advanced tax administrations in the world”, George Osborne has said.