Plasticity and avalanche behaviour in microfracturing phenomena