Brighton's Palace Pier has been put up for sale after struggling with visitor numbers in recent years and rising costs.