Victims of a doctor who secretly filmed more than 800 women in hospital bathrooms have shared harrowing statements in court.