King Charles praises 'kindness' and friendship 'in times of need' ahead of his first public appearance since his cancer diagnosis