Nicole Kidman's marriage to Tom Cruise in the 90s stopped her from "being sexually harassed" as a young actress in Hollywood.