gold ends at two-week high, rallies on bernanke