Spreading of sexually transmitted diseases in heterosexual populations