Multiplicity dependence of the average transverse momentum in pp, p–Pb, and Pb–Pb collisions at the LHC