Hopeful EuroMillions ticketholders were sent emails congratulating them on scooping the £39m prize, only for lottery bosses to discover something had gone badly wrong