Health boards in Wales will get funding for equipment, staff and promoting “new ways of working”.