A mean-field theory of super-cooled liquids