Measurements of differential cross sections for associated production of a W boson and jets in proton-proton collisions at $\sqrts =$ 8 TeV