Leinster completed a sweep of six pool victories in the European Rugby Champions Cup after beating Montpellier in France.