The line between decentralised and centralised wallets is blurred. Electrum lets you keep your private key but connects to the Bitcoin network through one of a limited number of servers. Blockchain.info lets you keep your private key but you must access the Bitcoin network through its website. Coinbase is fully centralised because you don't know your private key, but Electrum and Blockchain.info are partly centralised.
How is electrum centralised when your private keys never leave your pc and you can do what ever you like with your coins. The only thing electrum needs is an internet connection. Centralized mean some central supreme authority watching over you and making decisions for you, decentralized mean no central authority, you are free to do what you like, thats the big difference between Electrum and Coinbase which don't let you know your private keys.
Electrum's wallet connects to the Bitcoin network through one of a number of servers. One of those servers is what relays all your transactions to the Bitcoin network. You have to trust the server isn't malicious. If it's malicious your Bitcoins are less secure. With the full Bitcoin core wallet it doesn't matter if your wallet connects to a malicious node because it connects to multiple nodes at the same time, and ignores any malicious one.
Is that part of the system decentralised, or is that part of the system centralised?
Electrum is stored on your device but relies on servers for transactions information. Some wallets store the entire blockchain but electrum does not. Wallets that do not store the blockchain locally are called lightweight wallets. Lightweight wallets have to query their servers each time they are run.
So are you suggesting me to switch to Bitcoin Core, I can install it in my laptop as in my PC I don't have that much space left. Is Bitcoin core more secure than electrum, if thats the case I am giving it a try, hopefully it will run on Linux.
No, I'm saying weigh up the advantages and disadvantages of all available wallets and pick the ones most suited to your requirements. Bitcoin core needs an 80GB blockchain download and a long time to sync before you can use it. Electrum is fairly secure, just not as secure as Bitcoin core. However, you can use Electrum immediately after installing it, and it's light on CPU use, unlike core.
Also, Quickseller made some good points that my view of Electrum might not be entirely right.
Electrum's wallet connects to the Bitcoin network through one of a number of servers. One of those servers is what relays all your transactions to the Bitcoin network. You have to trust the server isn't malicious. If it's malicious your Bitcoins are less secure.
This is not entirely true as all that a malicious electrum server can really do is prevent you from spending your coins (via electrum), spy on you and tell you that you have a 0/unconfirmed transaction that has not been sent to the rest of the network.
With the full Bitcoin core wallet it doesn't matter if your wallet connects to a malicious node because it connects to multiple nodes at the same time, and ignores any malicious one.
Also not entirely true as if a malicious entity is able to connect to your node multiple times then your node might not be able to detect that they are connected to a malicious node and would not know to ignore it.