A competing risks model with degradation phenomena and catastrophic failures