The evolutionary transition from RNA to DNA in early cells