France caused the biggest shock of the basketball World Cup in China after beating holders the United States 89-79.