Hackers stole nearly $2 million from the online bank accounts of Japanese businesses in April, a surge in theft that has prompted some banks to curtail online services and rethink compensation policies, executives and regulators say.