Preexisting Cognitive Impairment Is Associated with Postoperative Cognitive Dysfunction after Hip Joint Replacement Surgery