France has won the European Teams Championship for the first time since 1998, beating Romania in the final.