Evidence for genomic rearrangements mediated by human endogenous retroviruses during primate evolution