Those who consumed more junk food had a 47% higher risk of heart attack or stroke compared with those who ate the least, according to a new study.