Japan will punish cryptocurrency exchanges after they allowed hackers to steal huge amounts of money.