More than 70 officers were injured on the streets of Hamburg as protesters clashed with police ahead of the G20 summit.