Directional persistence and the optimality of run-and-tumble chemotaxis