Coca-Cola has beaten Pepsi-Cola to be named as the exclusive beverage provider for Subway.