Former boxing world champion David Haye has been cleared of assault after a judge ruled that he has no case to answer.