The problem is likely too much watering.
- Allow the tomato plant to dry to encourage ripening. Reduce watering. If tomatoes have reached full or nearly full size, cut back on watering to encourage ripening.
- Give the plant a trim
- Pinch off flowers
- Cut away diseased leaves
- Pick small fruit
- Pick excess fruit
- Shift roots