Finite and Infinite Time Ruin Probabilities in the Presence of Stochastic Returns on Investments