Cognitive decline negatively impacts physical function