(Reuters) - Burger King Worldwide Inc agreed to buy Canadian coffee and doughnut chain Tim Hortons Inc in cash and stock to create the third-largest quick service restaurant group with sales of about $23 billion (14 billion pounds).