A segmented regression model for event history data: an application to the fertility patterns in Italy