ASX shares retreat as geopolitical tensions escalate