Pakistan’s ex-president granted bail on health grounds