gold extends advance, trades at record