A model for investment decisions with switching costs