Resolving liquid-to-glass transitions of water under soft nanoconfinement