Shia LaBeouf turned to Catholicism at a time when he was overwhelmed with "shame" and "didn't want to be alive".