Japan hikes rates to 31-year high