Stanford University president resigns over academic misconduct