Thai junta relaxes ban on ex-PM leaving country