David Moyes has confirmed his desire to become the new Manchester United manager and will leave Everton at the end of the season.