Feeling a sense of purpose drops after dementia, new study shows