Investment in financial literacy, social security, and portfolio choice