Theoretical analysis of wetting front instability in soils