S’pore must remain open to investments, foreigners to create opportunities for locals: Tharman