Greece riots as bailout agreed