The Pensions Regulator has warned it will take legal action against businesses that persistently fail to comply with auto-enrolment rules.