Portugal heads to the polls in hotly contested local elections