Same-sex sexual behaviour in primates is a survival strategy • It promotes harmony among those living in harsh environments, says new study