Almost all Hungarians who voted in Sunday's referendum rejected the EU's migrant quotas but turnout was too low to make the poll valid.