Gold prices edge higher amid safe-haven demand