Dollar retreats from 9-month high as stock rally lifts sentiment