The leading candidates to be Japan’s next prime minister have avoided investing in the country’s stock market.