Andros Townsend departs Crystal Palace after five years