An in-person survey of the influence of the COVID-19 pandemic on physical function, functional capacity, cognitive function, and mental health among community-dwelling elderly in Japan from 2016 to 2022