Arithmetic geometry and topological strings