Pathway-based mean-field model for Escherichia coli chemotaxis