Eating a Mediterranean diet rich in fruits and vegetables can reduce the risk of dementia by a quarter.