Britain's security agencies and police would be given unprecedented and legally binding powers to ban the media from reporting matters of national security  under proposals being discussed in Whitehall.