Ants may be cooling the Earth by helping trap carbon dioxide from the environment, a new study has claimed.