Primary elections and candidate selection at the local level. Evidences from the Italian case