The Spanish government has rejected a call by Catalonia’s president for the region to hold a referendum on independence.