Detection of pathways affected by positive selection in primate lineages ancestral to humans