Effectiveness of psychological support in patients undergoing primary total hip or knee arthroplasty: a controlled cohort study