Prehistoric humans are likely to have formed mating networks to avoid inbreeding