Stripes and spin-density waves in the doped two-dimensional Hubbard model: Ground state phase diagram