The number of ATMs around the world fell for the first time last year as banks closed branches and redirected resources toward digital payments,