Gold rises to 3-month high as weak oil, stocks boost haven demand