Decoupled Prototype Learning for Reliable Test-Time Adaptation