Emergency shelters are supposed to be a safe haven, but records show they’re ineffective — and rife with abuse and scandal.