Predictors of functional decline in nursing home residents: the Shelter project