More than 5,600 children were living in emergency accommodation as homelessness figures reached another peak