Statistics of the dissipated energy in driven single-electron transitions