Councils are to be given £68M to build thousands of new homes on disused brownfield sites, the government has announced.