David Hamilton and William Contreras both recorded three hits while Kyle Harrison struck out 11 batters in seven innings as the Milwaukee Brewers beat the Chicago Cubs 5-0.