The Coca-Cola Co has ended PepsiCo's almost two-decade sponsorship of Major League Baseball in the US.