Doctor who was sexually assaulted at work wins case against trust after it asked colleagues if she had “inappropriate relationships”