A hairdresser from St Petersburg has been given a jail term of five years and two months on a charge of spreading fake news about the Russian army.