The Conservative Housing Minister claimed that a ban on letting agency fees would lead to higher rents just weeks before announcing the policy, it has emerged.

In late September Gavin Barwell said a ban on the charges was a “bad idea” during a discussion about housing on social media.

“Landlords would pass costs to tenants via rent. We’re looking at other ways to cut upfront costs and raise standards,” he said on 19 September.

The Treasury announced overnight that Wednesday’s Autumn Statement would contain a ban on such fees, however.

Mr Barwell defended his previous attacks on the policy, arguing that he was bound by collective responsibility when he made the previous comments.

“It is the nature of the job that you have to defend current policy even when you're working to change it,” he said.

Referencing another housing policy dropped by the Government this week, he said: “You could equally quote me defending Pay To Stay a few months ago.”

Labour’s shadow housing minister John Healey seized on Mr Barwell’s previous comments, tweeting: “We’ll back Hammond if he borrow from Labour to ban letting fees… he’ll need our support if his own Housing Minister is still against it!”

Landlord and letting agents’ groups attacked the policy but it was welcomed by housing charities and campaigners.

The hated charges, levied on renters on top of deposits and rent, cost hundreds of pounds and are nominally levied for mundane administrative tasks such as printing out a tenancy agreement.

Agents also usually take a percentage of the monthly rent on a property, meaning they effectively charge twice – contributing to profit margins in the industry as high as 30 per cent.

In pictures: Tiny London flats to rent Show all 6 1 /6 In pictures: Tiny London flats to rent In pictures: Tiny London flats to rent London properties A "cosy" flat in an upmarket area of west London is available to rent for a reasonable £520 a month, provided the tenant doesn’t mind showering under the bed In pictures: Tiny London flats to rent London properties Located on Castletown Road, the advertisement on Zoopla boasts: "A cosy, single studio located in the heart of London’s fashionable and up-market area of West Kensington, this compact mezzanine includes not only a fully furnished living area including table, chair, wardrobe and chest of draws [sic] but also a personal shower and kitchenette complete with storage" In pictures: Tiny London flats to rent London properties The property is recommended for "students, working professionals and those looking for a thriving London life at an affordable rate" Rightmove In pictures: Tiny London flats to rent London properties A studio flat for rent in Kember Street, north London was advertised for £737-a-month Rightmove In pictures: Tiny London flats to rent London properties The 'well-used' kitchen of a flat in Hoxton, which was on the market for £997 per month Zoopla In pictures: Tiny London flats to rent London properties For only £125 per week you could be the lucky owner of this single studio flat, complete with shower and kitchenette, located between Barons Court and West Kensington Zoopla

According to the charity Citizens Advice the fees cost an average of £337 per person, while letting agents themselves say the figure is closer to £200. Many tenants are charged over £500, however – particularly in London.