Obamacare and an aging U.S. population are spurring purchases of medical office buildings, with investors sending prices to a record on bets that Americans demand for health services will increase.