How to prevent distress in local government: a new model applied in Italy