Endogenous animal spirits and investment. An Agent Based Model