Ryan Giggs has confirmed his retirement from the playing ranks on the day he was named as new Manchester United manager Louis van Gaal's assistant.