The account on the platform formerly known as Twitter impersonated Japan’s top currency diplomat.