Dynamics of the phase transition in the weakly interacting Bose gas