Factors influencing postoperative urinary retention in patients undergoing elective inguinal herniorrhaphy.