Inferring patterns of folktale diffusion using genomic data