Using local plasticity rules to train recurrent neural networks