William condemns rise in antisemitism as he visits synagogue