Figures have revealed the number of alleged sexual assaults and alleged rapes at hospital sites in West Yorkshire over a two-year period.