Primates have been masturbating for at least 40 million years