Afghan election officials have disqualified 21 candidates in next weekend's legislative elections for having alleged links with armed groups.