Queen Mary has attended a poignant church service marking the fourth anniversary of Russia’s invasion of Ukraine.