David Moyes has written to Manchester United fans, thanking them for their support after a season more difficult than he imagined.