Pakistani premier grapples with internal rifts