Near-infrared observations of outflows and young stellar objects in the massive star-forming region AFGL 5180