Plastic prosociality: Conditions for cohesion and cooperation in the genus Macaca