Councils have spent at least £1.6bn on temporary accommodation in the last five years