An extra year at uni isn't neccessarily a bad thing. You have a years worth of experience to learn from now, you've got some background knowledge to use next time as well as some general living experience to help you manage your time and responsibilities better. Learn from the last year and you could come out of uni better off than if you hadn't of repeated, potentially with a higher degree classification.
Plus you can enjoy the extra year of being a student too and all the enrichment that comes with that, just make sure to balance your work and fun well and you'll can turn it into a positive and come out of it a better person.
We all fail and make mistakes from time to time, and these failures are what help us to learn and grow. It's just a part of being human and nothing to be ashamed of. Better to make these mistakes in a learning environment where you can learn from them, the whole point of education is to give you that safety net so you can make them and learn. No one is perfect all the time, what really matters is how you respond and develop to your failures and successes.