Pharmacogenomics for the treatment of dementia