An island town in western Japan is without water after a ship is believed to have hit a bridge and severed its water supply.