Scores of celebrities, athletes and public figures have successfully turned to the courts in a bid to keep allegations of infidelity and sexual misconduct out of the spotlight.