Treating dementia by drinking coffee