Ortiz, Red Sox end 10-game skid, rally past Braves