Martin McGuinness suggested prayers with former first minister Ian Paisley, according to a new book.