Projection method for the fluctuating hydrodynamics equations