Glass transitions in the cellular Potts model