The chancellor says she will have to raise money through tax after claims of a £22bn hole in the public purse.