Measurement of b-quark fragmentation properties in jets using the decay B± → J/ψK± in pp collisions at sqrt(s) = 13 TeV with the ATLAS detector