The Hungarian prime minister, Viktor Orbán, has failed to convince a majority of his population to vote in a referendum on closing the door to refugees, rendering the result invalid and undermining his campaign for a cultural counter-revolution within the European Union.