Mean-field theory of the morphology transition in stochastic diffusion-limited growth