Two days of fighting between rival gangs in a prison in northern Mexico have left at least 13 inmates dead.