Stochastic dynamics of a trapped Bose-Einstein condensate