Learning precise spatiotemporal sequences via biophysically realistic neural circuits with modular structure