Global existence of weak solutions to the Navier-Stokes-Korteweg equations