Welcome to the forums @ItsLeffdePeff!
Assuming you are working in 2D, the following code will set the node's position to the touch position:
func _input(event):
if event is InputEventScreenTouch:
global_position = event.position
# for screen drags:
#elif event is InputEventScreenDrag:
# global_position = event.position