Ant societies rose by trading individual protection for collective power