Charge-density-wave origin of cuprate checkerboard visualized by scanning tunnelling microscopy