Russia has announced it will expel the diplomats and revoke permission for a British consulate in St Petersburg.