Credit portfolio selection with decaying contagion intensities