Yahoo to rebrand and CEO Mayer to resign if $4bn Verizon deal goes ahead