Lifestyle variables and the risk of myocardial infarction in the general practice research database