Stanford president resigns over problems in 12 research papers