The soft mode in the Sachdev-Ye-Kitaev model and its gravity dual