LONDON — The head of Britain’s cyber intelligence agency on Tuesday accused China of trying to “rewrite the rules of international security,” saying Beijing is using its economic and technological clout to clamp down at home and exert control abroad.