how does sex affect your mental health