Spain's prolonged political impasse will have a negative effect on the country's economy, according to Moody's Investor Service.