Egypt's highest court has accepted the appeal of three jailed journalists who work for Al Jazeera and granted them a retrial, the journalists' lawyers said.