Social constraints determine what is learned in the chimpanzee