Hopfield model with stochastic update