Former British PM Cameron resigns from parliament