Conductivity hysteresis in MXene driven by structural dynamics of nanoconfined water