Latching dynamics in Potts neural networks