The Wess-Zumino-Witten term of the M5-brane and differential cohomotopy