Gold hits 3-month high on haven demand