Spanish Prime Minister Pedro Sanchez has revealed that his country will recognise Palestinian statehood by July this year.