Space- and time-resolved dynamics of fast electrons and of the energy partition into cold electrons