A burglar who stole two mobile phones from Wigan and Leigh health services and was found with hard drugs has been sent for rehab.