Stumble in Japan’s Nikkei index shows how following the herd has its dangers