A percolation model for water sorption in porous cementitious materials