Constraints on leptophobic $Z^\prime$ models from electroweak experiments