Worldline approach to Sudakov-type form factors in non-Abelian gauge theories