China's weakening currency has rattled investors around the globe. How much of a threat does it pose?