Stability and hierarchy of quasi-stationary states: financial markets as an example