Almost 20,000 patients were waiting for routine treatment at Queen Victoria Hospital in December, new figures show.