A trip to the toilet by a cargoship captain who had been drinking wine ended up causing a grounding off Denmark, a report