Gold at 3-week high as dollar struggles amid US rate outlook