Learning Flexible Body Collision Dynamics with Hierarchical Contact Mesh Transformer