The Origins and Role of Same-Sex Relations in Human Societies