US President Barack Obama is to come to Israel for the official state funeral of former President Shimon Peres.