Taxpayers to pay £40bn more due to threshold freeze, think tank says