Ex-Manchester United and Netherlands boss Louis van Gaal says he has retired from coaching after a 26-year career.