An unexpected acceleration in values last month pushed prices to a record high, the Nationwide says.