Phase diagram of the Holstein-Hubbard two-leg ladder using a functional renormalization-group method