The evolution of site-selection strategy during dispersal