A record 597 HDB flats sold for over $1m last quarter. Here's what it takes to buy one