Measurement of VH, H→bb¯ production as a function of the vector-boson transverse momentum in 13 TeV pp collisions with the ATLAS detector