Quantum Sugawara operators in type $A$