Investor confidence improves in August despite uncertainty