RM-PoT: Reformulating Mathematical Problems and Solving via Program of Thoughts