Former Brazilian president Dilma Rousseff has been hospitalised in Shanghai for ear inflammation, her team said.