Eurozone agrees 'historic' deal to pave way for Greece's bailout exit