Assessing function in patients undergoing joint replacement: a study protocol for a cohort study