Liverpool forward Raheem Sterling will "look back in 20 years and wonder what he was doing" after recent off-field incidents, says boss Brendan Rodgers.