People under the age of 50 who smoke are more than eight times as likely as non-smokers to have a heart attack, a study found.