Water in confining geometries