Taiwan’s consumer confidence rose slightly in July, the first time since February, driven by growing optimism in the local stock market.