Assessment of cognitive function and sleep–wake rhythms in community-dwelling older adults