Association of gait with global cognitive function and cognitive domains detected by MoCA-J among community-dwelling older adults: a cross-sectional study