Risk and protective factors for chronic pain following inguinal hernia repair: a retrospective study