Cantwell scores first Rangers goal as Motherwell beaten in thriller