Dozens were held for days in small rooms last year with no beds, showers or full-time medical staff, records analyzed by The Post show.