Matthew Perry sells LA mansion for $4.7M