Faced with potential violence from rival factions, dwarf mongoose groupmates pull together and behave more cooperatively, according to new research.