Gold rises to record high above $4,500 on safe-haven flows