A mean field model of coupled cascades in flow networks