Generalised CP symmetry in modular-invariant models of flavour