Nawaz Sharif has resigned as Pakistan’s prime minister after being disqualified by a verdict of the country’s Supreme Court.