Just a firm pull up of the USB cable (when connected to phone) did the trick for me too.
Actually the very reason i started to have this problem was after an accidental bending of my charger USB connector while my phone was charging
That must have displaced or damaged the usb toungue within my...