Swiss police deployed a water cannon and fired tear gas to disperse anti-G7 protesters after clashes.