Exact Gap between Generalization Error and Uniform Convergence in Random Feature Models