Just for future reference, if you're going CPL/IR after Uni - do the ATPL before that rather than the CPL exams - might as well get them all out the way then CPL/IR afterwards. No point doing the CPL ones if you're going ATPL anyway.
If you're seriously planning not to fly for the next 3-4 years - I personally (and that's the important bit), would'nt do the licence now. Save up - put the money in a high interest account, and do it when you're ready to.
Getting a licence now and not using it for 4 years will be disheartening and you'll be out of pratice when you do start again.
Even without Uni/money issues, plenty PPLs (me included) find it hard enough to even stay current due to the weather (not least aircraft availability) - if you're going to be renting, you'll be continually being checked out by a club as you'll be non-current - having that instructor in the RHS all the time will add to the cost and reduce what you *can* fly even more!
You'll never be able to take mates up unless you get your 3 landings in 90 days in which itself can be a challenge, and you'll need to be current to club rules also which are usually much stricter (like 30 days).
To be perfectly honest, getting a licence and flying a handful of times a year is pointless - you'll have an instructor with you probably anyway, so why not just do lessons every couple of months/month - still goes in the log book, no expensive licence to get/maintain etc, and you can start in earnest piling in the hours for completion once you've graduated while doing *useful* flying during your degree. (Don't underestimate the need for useful flying - post PPL bimbling around the local area gets very old, very quick, but you won't be able to go anywhere unless you're current, can afford it, and have the time!).
But that's my personal opinion - up to you.

Whatever you do - enjoy it!