Drugs for the treatment of dementia