Four-loop collinear anomalous dimension in N = 4 Yang-Mills theory