Endogenous financial literacy, saving and stock market participation