On continuous 2-category symmetries and Yang-Mills theory