Tens of thousands of patients were waiting for routine treatment at Gloucestershire Hospitals Trust in December, new figures show.