A theory of delegated search for the best alternative