The CQC found some patients were waiting for more than 40 hours for a bed on a ward at one of Kent’s busiest hospitals.