The Prince of Wales attended an event hosted by Homewards Aberdeen and visited Shelter Scotland in the city.