Mediterranean diet may prevent memory loss and dementia, study finds