Prime Minister Boris Johnson has promised to help revitalise coastal towns with a huge injection of government cash.