PIC16F15345 Microcontroller, RA5 Digital Input Pin Issues
http://www.mouser.com/ds/2/268/40001865B-1082596.pdf
Check TABLE 1-2: PIC16(L)F15325 PINOUT DESCRIPTION (CONTINUED) 
    Only Select GPIO function Disable all other functions.