Oil prices at three-month high with weaker dollar