Cannabinoids for the treatment of dementia