Princess Anne attends first royal engagement since revelation about King's cancer