China's factory output shrank more than expected in July, official data showed on Thursday, logging its fourth straight month of contraction as Beijing battles to hammer out a trade deal with the United States. China's bruising trade war with the United States -- now on hold pending a deal -- has hit the export-dependent economy.