Stochastic wakefield plasma acceleration in gamma-ray bursts