The typical home bought in cash costs as much as $2.7 million in some sought-after pockets where buyers don’t need help from the bank.