US companies have taken steps to distance themselves from President Donald Trump in the aftermath of white supremacist violence in Charlottesville.