Turkish President Recep Tayyip Erdogan's ruling party has suffered heavy losses in nationwide local elections, a sign that rising levels of unemployment and the backlash from last year's currency crisis are starting to take their toll on his years-long domination over Turkey's politics.