Health Secretary Wes Streeting has announced his resignation from government.