McDonald’s said it is not endorsing a presidential candidate after Trump’s visit to one of its restaurants.