This first half ranks among the market’s worst on record. Here’s what typically happens next