US stocks open higher as trade deficit narrows