Ernesto Valverde knew his position at Barcelona was in doubt, according to club president Josep Maria Bartomeu.