Stocks close sharply higher after Sanders drops out of race