Recovery of the cosmological peculiar velocity from the density field in the weakly non-linear regime