Fourier matrices of small rank