Global stocks fall as China devalues its currency