Gold surpasses $4,000 amid inflation data