Prime Minister Boris Johnson agrees to resign