A coarse-grained deep neural network model for liquid water