Pervez Musharraf leaves All Pakistan Muslim league