If Beijing imposes its national security law, Britain will ‘have no choice but to uphold our profound ties of history and friendship with the people of Hong Kong’, Boris Johnson says.