Habit Formation, the Cross Section of Stock Returns and the Cash-Flow Risk Puzzle