A teenager was made to stand for hours, sometimes while naked, and sleep on the floor by his grandmother as part of a punishment regime.