The prices of oil and gold hit fresh records as investors continue to move money into commodities.