Harmless interpolation in regression and classification with structured features