Landlords will have to act more quickly to tackle "significant risks" in social housing, including excess cold and heat.