Direct observation of cooperative effects in capillary condensation: The hysteretic origin