An investigation has found workers are subjected to long shifts, often without legal pay, amid claims some are months on board without a port visit.