$L^2$-invariants and geometric group theory, I