Adverse childhood experiences and sexually transmitted diseases in men and women: a retrospective study