Elasto-plastic modelling of the brittle-ductile transition in a pyroclastic weak rock