CQC chief Julian Hartley quits as inquiry is launched into maternity failings at his former trust