Elliptic azimuthal anisotropy of electrons from heavy-flavour decays in Pb-Pb collisions at 2.76 TeV