Event-by-event mean p_T fluctuations in pp and Pb–Pb collisions at the LHC