The price of gold rose above $4,000 an ounce for the first time, signaling investors are concerned about the state of the broader economy.