Quantum spin-flavour memory of ultrahigh-energy neutrino