Auston Matthews scored his 40th goal of the season as the Toronto Maple Leafs beat the Montreal Canadiens 5-2.