Modular and duality properties of surface operators in N=2⋆$$ \mathcal{N}={2}^{\star } $$ gauge theories