Gold prices end streak of losses, finish higher for the session