Newsweek accidentally publishes magazine congratulating Hillary Clinton for winning US presidential election.