A man has admitted breaking into shared student accommodation in Durham, taking various items belonging to the residents.