Measurement of the differential cross section and charge asymmetry for inclusive \(\mathrm {p}\mathrm {p}\rightarrow \mathrm {W}^{\pm }+X\) production at \({\sqrt{s}} = 8\) TeV