Housebreaking doesn't happen overnight. Some dogs figure it out more quickly than others. Some take months.
First of all, take him to the vet to rule out a urinary tract infection. There might be a medical reason behind the peeing, and if there is, you can treat it.
If not . . .
Since he's not housebroken, throw out the four-hour rule. Take him out every hour. Praise and treat. No rebuking or whipping, even if you catch him in the act. If you catch him mid-pee, clap or say, "Ah ah," and whisk him outside to finish.
Also, are you cleaning the area and using an enzyme cleaner? If you're not using the enzyme cleaner, he is still able to smell the pee which encourages him to pee in the same place.
First off, though, take him to the vet to rule out a UTI.
First of all, take him to the vet to rule out a urinary tract infection. There might be a medical reason behind the peeing, and if there is, you can treat it.
If not . . .
The praise/treat is fine. The whipping, no matter how mild, is NOT. The fact that he waits for that 5% makes me think that what he's learned is that he shouldn't pee in front of you. This is not the way to train him to go outside.
Since he's not housebroken, throw out the four-hour rule. Take him out every hour. Praise and treat. No rebuking or whipping, even if you catch him in the act. If you catch him mid-pee, clap or say, "Ah ah," and whisk him outside to finish.
Also, are you cleaning the area and using an enzyme cleaner? If you're not using the enzyme cleaner, he is still able to smell the pee which encourages him to pee in the same place.
Tail tucked under isn't evidence of shame. What your dog is telling you is that he's afraid. That's what a tucked tail means. Be patient with him, and go the positive reinforcement route. Remember to take him out every hour until he is consistently going outside, then you can extend the time.
First off, though, take him to the vet to rule out a UTI.