Causal Attribution of Model Performance Gaps in Medical Imaging Under Distribution Shifts