Queen carries out first major royal duty since Philip's death