Optimal Rates For Random Fourier Features