Spain’s Socialist prime minister defends Begoña Gómez in open letter and says case politically motivated