I was told that you should avoid nuts after 20 weeks. Before then, it is ok to have them now and again... not everyday though. I'm not sure about peanut butter though... I am sure it would be similar, to avoid after 20 weeks.
I had no idea about anything like this when I was pregnant with James and Madeleine. I ate peanuts with James and I loved peanut butter... he came out fine