Implantable diagnostic device for cancer monitoring