Dundee United ended St Mirren's recent upturn in form with Nadir Ciftci's double, and further goals by Ryan Gauld and Chris Erskine in a 4-0 victory.