Early results in Pakistan show former cricketer and opposition figure Imran Khan in the lead to become prime minister, amid allegations of vote-rigging.