Australian Geoff Allardice resigned as chief executive of the International Cricket Council after being told he would have to re-apply for his job.