Manchester United secured a dominant 5-2 win over Leicester as Ruud van Nistelrooy earned his first win as interim boss.