Retrieve tasks from localStorage.