Traditional seaside towns are grappling with a “toxic mix” of low incomes, job insecurity and transport woes, says a historian.