New study says certain diets associated with increased risk of dementia