How to: Create a playlist with full albums for which one (or more) of its contained tracks has a 5 star rating?
Don't know of a precise solution to what you're asking, but here's a possible workaround.

Create a playlist of all the songs rated 5 stars. Change the viewable columns for the playlist to show the Album Rating. Set the rating of all of the albums to 5 stars (I believe, unfortunately, that this has to be done on Windows on an album-by-album basis). Now create a new playlist for all the albums with 5 stars.