You should keep firm in the side lanes when there are no team fights, but spend as little time as possible away from your team. You need gold and XP to buy items, and if you fall behind it will be unlikely that you will be able to cover the damage in the fighting.