Many-body effects in the structure of water