Deconstructing the performance of everyday activities: a case in dementia