Pakistan's Prime Minister Nawaz Sharif has stepped down after the Supreme Court disqualified him from office as leader of the country's government.