Boris Johnson does not need to resign if he attended party, says senior Tory