Twitter CEO Jack Dorsey formally apologised on Thursday for allowing a white supremacist group to sponsor an advertisement in violation of the company's own policies.