Tokyo stocks tumble almost 4% as Hong Kong, Shanghai slump