Shifts in capital flows between market sectors