Accelerating multiscale finite element simulations of history-dependent materials using a recurrent neural network