Manchester United have confirmed Louis van Gaal as their new manager with Ryan Giggs as his assistant.