Cumulative damage and instability in rock masses