Somatic evolution and global expansion of an ancient transmissible cancer lineage