A scalable and real-time neural decoder for topological quantum codes