‘Councils built this country out of a housing crisis once before,’ the prime minister said