Groups of prime power order covered by a certain number of proper subgroups