Two palm trees on a town's seafront are to be replaced because they are causing structural issues to a road and promenade.