Investors spent August chasing the global stock market with one hand while taking shelter in record gold purchases with the other.