Effect of mating activity and dominance rank on male masturbation among free-ranging male rhesus macaques.