Pakistani prime minister resigns in Panama Papers case