Measurement of the transverse momentum spectra of weak vector bosons produced in proton-proton collisions at $ \sqrts=8 $ TeV