Formiche, socialità e diversità