Durham recovered from a disastrous start to put a dent in Yorkshire's title hopes, reaching the close on day one at Scarborough on 406-6.