The influence of endorsements on the presidential election