Violent protests have broken out in the southern technology hub of Bangalore over a Supreme Court order to divert water from reservoirs to a neighbouring state.