Coastal towns need better transport links so they are not left behind, the House of Lords is told.