An evolutionary model of female dominance relations in primates