Track reconstruction in the FOOT experiment