Mariano Rajoy, Spain's Prime Minister, has announced the dissolution of Catalonia's parliament and called elections in December.