At least 13 people have died and dozens more are being treated for their injuries after a train derailed in Mexico, authorities have said.