Trajectories of Pain and Function after Primary Hip and Knee Arthroplasty: The ADAPT Cohort Study