Release of vulnerable people from immigration detention is often medically unsafe and chaotic, says charity