A decomposition approach in multistage stochastic programming