Non-crime hate incidents should be scrapped because they are a waste of time and money, one of Britain’s top judges has said.