China, Hong Kong stock markets dive as President Xi secures third term