Pakistan faces political and economic uncertainty as the prime minister resigns from power over corruption allegations.