Effectiveness of a clinical pathway for the diagnosis and treatment of dementia and for the education of families