Gold and silver soared to all-time highs, as escalating geopolitical tensions and bets on further US rate cuts added momentum to the best annual performance in more than four decades.