Dynamical control of the halo in particle beams: a stochastic-hydrodynamic approach