Australian researchers found a link between unhealthy diets and poor cognitive and educational performance in young people.