A livestock virus sweeping through British sheep flocks and cattle herds has been passed to wild deer, say scientists.