String theory, geometry and (mock) modular forms