Thousands of protesters took to the streets in Pakistan to demand the release of the jailed former Prime Minister Imran Khan.