The pace of Japan’s consumer inflation slowed slightly in May due to declines in electricity prices.