Soft drinks producers in Singapore are to reduce their sugar content after agreeing a deal with the city-state's government.