Italian Prime Minister Matteo Renzi has officially resigned, according to a statement from the nation's president's office.