Impact of the COVID-19 pandemic on cognitive function in Japanese community-dwelling older adults in a class for preventing cognitive decline