Ecologically pre-trained RNNs explain suboptimal animal decisions