Genomic signatures of ancient asexual lineages