Dettol has apologised after an advert in China intended to challenge sexism was accused of reinforcing it.