"A multi-agent model of the economy explaining long-range correlations of stock markets"