Measurement of VH, H → b b ¯ $$\mathrm{H}\to \mathrm{b}\overline{\mathrm{b}}$$ production as a function of the vector-boson transverse momentum in 13 TeV pp collisions with the ATLAS detector