A cellular-automata, slider-block model for earthquakes I. Demonstration of chaotic behaviour for a low-order system