Pope Francis has appeared at his window of a hospital in Rome and offered a blessing for the first time since being admitted on 14 February.