The Prince and Princess of Wales have been undertaking public engagements in support of World Mental Health Day.