Japan raises interest rate to 31-year high over inflation risks