Measurements of low-pT electrons from semileptonic heavy-flavour hadron decays at mid-rapidity in pp and Pb-Pb collisions at \( \sqrt{s_{\mathrm{NN}}}=2.76 \) TeV