God's grace is sufficient for you, and His strength is made perfect in your weakness. You receive this sufficient grace when you come into His temple. -2 Corinthians 12:9
It is wrong to start avoiding church because you feel dirty. That's the time you need to be in church the most. Go in humility to the throne of grace, not keeping up appearances but sincerely sorry.
Memorise: Let us therefore come boldly unto the throne of grace, that we may obtain mercy, and find grace to help in time of need. -Hebrews 4:16