Dollar gains as geopolitical worries, rate hike fear rattle market