Incommensurate charge-density waves in the adiabatic Hubbard-Holstein model