Buyback plans surge to a fresh record as stock market heads for biggest two-year gain in a quarter-century