Capital-Reallocation Frictions and Trade Shocks