A downbeat forecast sinks shares as both the retail and cloud businesses feel the pinch of a slowing economy.