The leader of Catalonia, Carles Puigdemont, has declared that the region has "earned the right" to independence from Spain but put off a split to allow talks to take place.