How to completely reinstall Mac OS X?
You almost got it right, but you didn’t wipe the disk first. You’ll want to wipe Macintosh HD in recovery mode first (choose Disk Utility) then repeat the steps you took to install El Capitan.