White House: Top scientist resigns over treatment of staff