Eat these foods to prevent dementia.