Montpellier edge 14-man Cardiff Blues