The dollar and gold gained Friday amid escalating tensions in the Russia-Ukraine war, while stocks got a boost from data.