Impact on physical function of the +AGIL Barcelona program in community-dwelling older adults with cognitive impairment: an interventional cohort study