Learning, Rare Events, and Recurrent Market Crashes in Frictionless Economies without Intrinsic Uncertainty