Measurement of the $W \to μν_μ$ cross-sections as a function of the muon transverse momentum in $pp$ collisions at 5.02 TeV