Weighted entropy and optimal portfolios for risk-averse Kelly investments