China’s factory activity contracted in July, a private survey shows