Bear market still has more pain to inflict before it bottoms, history shows