Investors can use smart models to brave market slumps, but they have short memories and often repeat mistakes, says Wharton’s Joao Gomes.