A builder who filmed himself on a phone destroying five newly-built retirement homes in a pay row has been jailed for four years.