England's top GP resigns over imflammatory online comments