An Indian court has ruled that contract bottlers for PepsiCo and The Coca-Cola Co cannot divert water from a drought-hit river as water scarcity in the country continues to trouble beverage makers.