Symmetries and renormalisation in two-Higgs-doublet models