Mercedes boss Toto Wolff says the team have learned lessons about the rivalry between Lewis Hamilton and Nico Rosberg.