A rule preventing patients of different sexes from being treated on the same ward was broken more than a dozen times at North West Anglia Trust last year, new figures show.