Theory of out-of-equilibrium ultrafast relaxation dynamics in metals