Thoma Bravo agrees to buy UK-listed Darktrace in $5bn deal