Gold edged higher as traders weighed geopolitical tensions in the Middle East and the impact of US tariffs on global trade.