UK submarines hit by ‘underfunding’, warns former First Sea Lord