Analysis of the factors related to the decision of restoring intestinal continuity after Hartmann’s procedure