capacity and competence dementia