Relativistic electron bunches locked to attosecond optical field waveforms: an attosecond light–matter bound state