Gold prices end higher in wake of FBI director's dismissal