Five-loop fermion anomalous dimension for a general gauge group from four-loop massless propagators