Competing risks within shock models