Tim Harford explains how rational decision-making influences our choices about unprotected sex and soft drinks.