Banks in China issued a smaller-than-expected amount of new loans in July, signaling that credit demand remained weak.