Thermal phase transition in Yang-Mills matrix model