Thousands of patients spent more than twelve hours waiting in hospital corridors last year, highlighting ongoing service pressures.