Euro ticks higher ahead of Greek debt referendum