Gold rises on safe-haven buying