The rise in waiting times comes despite pre-election claims by John Swinney that the health service had turned a corner.