The government has announced that 149 high-rise buildings in 45 local authorities have failed fire safety tests.