Non-Markovian dynamics of a nanomechanical resonator measured by a quantum point contact