Farmer cleared of sheep theft