A rule preventing patients of different sexes from being treated on the same ward was broken several times at Liverpool University Hospitals Trust last year, new figures show.