Ground-state properties of the attractive one-dimensional Bose-Hubbard model