A Wandering Detection Method Based on Processing GPS Trajectories Using the Wavelet Packet Decomposition Transform for People with Cognitive Impairment