Natural selection and repeated patterns of molecular evolution following allopatric divergence