Numerical modelling of the plasticity induced during diffusive transformation. An ensemble averaging approach for the case of random arrays of nuclei