Stocks end higher Friday, Dow books best month since January