This book was recently recommended to me.
According to the authors, before agriculture, sex was relatively promiscuous, and paternity was not a concern, in a similar way to the mating system of Bonobos. According to the book, sexual interactions strengthened the bond of trust in the groups; far from causing jealousy, social equilibrium and reciprocal obligation was strengthened by playful sexual interactions.