Greece agrees €24bn austerity package