Quantum effects in liquid water: Path-integral simulations of a flexible and polarizable ab initio model