Monolithic coupling of the pressure and rigid body motion equations in computational marine hydrodynamics