Irreversible investment in stochastically cyclical markets