Financial cycles, credit networks and macroeconomic fluctuations: multi-scale stochastic models and wavelet analysis