The new security centre designed to improve Britain's resilience to hacking will be opened by the Queen.