The dividend problem in a diffusive stochastic model