Authorities have confirmed the cause of death for a 24-year-old woman who died on board a Carnival cruise ship in California.