Erectile dysfunction can put men at risk of developing a range of heart problems, such as heart attack and sudden cardiac death, shows a new study.