Effectiveness and safety of tranexamic acid in total joint arthroplasty