Granular flows and numerical modelling of landslides