Stochastic Weight Update in Neural Networks: Theoretical study of stochastic neural networks learning