US trade deficit shrinks for first time in six years