Stochastic confinement and dimensional reduction