Scientists have studied the diets of more than 14,000 people and found there are key foods that can help stave off thinking and memory problems