Stochastic formulation of Feynman path integrals from the least action point of view