Electric, thermal, and magnetic properties of hexagonal and cubic UPtSn