The government said it would fix the “broken system ... An NHS spokesperson said fewer beds had been available as some patients ready to leave hospital were still waiting for housing support.