Event-by-event mean p(T) fluctuations in pp and Pb-Pb collisions at the LHC