The association between cognitive fluctuations and activities of daily living and quality of life among institutionalized patients with dementia