A man killed himself just days after arriving at a Liverpool prison and claiming he had killed someone, a report found.