Hospital bosses in Southampton were “on the brink” of needing to declare a critical incident at the height of pressures this winter.