Gold surges past $4,000 after inflation data