The United Arab Emirates has denied accusations that it was behind the hacking of the Qatar News Agency, which contributed to the political crisis in the Gulf.