The Thue-Siegel-Roth theorem in characteristic p