Numerical modelling of granular avalanches through a forest of deformable pillars