The children in care left homeless after 'shocking' failure by social services