Transmissible cancer and the evolution of sex