Four people have been arrested after a stolen vehicle containing cannabis plants was recovered after being pursued by officers in South Yorkshire.