Reorientation in Random Potential: A Model for Glasslike Dynamics in Confined Liquid Crystals