An evolutionary perspective on the development of primate sociality