Cumulative and maximum epidemic sizes for a nonlinear SEIR stochastic model with limited resources