Short-ranged and short-lived charge-density-wave order and pseudogap features in underdoped cuprate superconductors