An investor purchased one in every five homes sold between 2004 and 2018 across Greater Boston, a recent finding that housing advocates say is not surprising and one that confirms what they’ve seen anecdotally in their communities over the past decade.