Difficulty getting an erection is frequently framed as a problem confined to the bedroom, but well-established science links it to a range of serious diseases.