gold rises first day in three on safe-haven buying