Associations between exercising in a group and physical and cognitive functions in community-dwelling older adults: a cross-sectional study using data from the Kasama Study