Pervasive selection biases inferences of the species tree