An accident has led to more than five miles of tailbacks on the M6 during rush hour.