Ant colonies act as one "super-organism" which works to ensure the survival of all, according to a team of scientists.