Andrew appears in military uniform as he holds vigil next to the queen's coffin