Global weak solutions to the Novikov equation